#!/bin/bash

IPS=""

while read -r line
do
    while read -r port
    do
        IPS="${IPS} $line:$port"
    done < ./masters
done < ./ips

./redis-trib.rb create --replicas 0 ${IPS}